<template>
    <div>
        <swiper :lunbotulist="lunbolist" :isfull="true"></swiper>  

         <ul class="mui-table-view mui-grid-view mui-grid-9">
		        <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
              <router-link to="/home/newslist">
		            <img src="../../images/新闻.png" alt="">
		            <div class="mui-media-body">新闻资讯</div></router-link></li>
		        <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
              <router-link to="/home/photolist">
		            <img src="../../images/分享.png" alt="">
		            <div class="mui-media-body">图片分享</div></router-link></li>
		        <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
              <router-link to="home/goodslist">
		            <img src="../../images/商品.png" alt="">
		            <div class="mui-media-body">商品购买</div></router-link></li>
		<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		        <img src="../../images/留言.png" alt="">
		        <div class="mui-media-body">留言反馈</div></a></li>
		<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		        <img src="../../images/视频.png" alt="">
		        <div class="mui-media-body">视频专区</div></a></li>
		<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		        <img src="../../images/联系人.png" alt="">
		        <div class="mui-media-body">联系我们</div></a></li>
	</ul> 
    </div>
</template>

<script>
import { Toast } from "mint-ui";

import swiper from '../subcomponents/swiper.vue'

export default {
  data() {
    return {
      lunbolist: [
        { id: 1, src: "/src/images/homelunbo/sn1.jpg" },
        { id: 2, src: "/src/images/homelunbo/sn2.jpg" },
        { id: 3, src: "/src/images/homelunbo/sn3.jpg" }
      ]
    };
  },
  components:{
    swiper
  }
  //   created(){
  //    this.getLunbotu();
  //   },
  //   methods: {
  //    //获取轮播图数据的方法
  //    getLunbotu() {
  //         this.$http.get("api/getlunbo").then(function(result){
  //                if (result.body.status===0) {
  //                        this.lunbolist=result.body.message;
  //                         } else {
  //                        Toast("获取加载轮播图失败")
  //                                  }
  //                 })
  //         }
  //   }
};
</script>
   
<style lang="less" scoped>
.mint-swipe {
  height: 200px;

  .mint-swipe-item {
    &:nth-child(1) {
      background-color: lawngreen;
    }
    &:nth-child(2) {
      background-color: skyblue;
    }
    &:nth-child(3) {
      background-color: lightcoral;
    }
    img {
      width: 100%;
      height: 100%;
    }
  }
}
.mui-grid-view.mui-grid-9 {
  background-color: #fff;
  border: none;

  .mui-table-view-cell {
    border: none;
    img {
      width: 60px;
      height: 60px;
    }
    .mui-media-body {
      font-size: 16px;
    }
  }
}
</style>
